Re: Installing Chromium via USb - What is Sudo/SU Command Li
The Pope said:
Having fried my usual laptop by spilling water on it I now have sealed it in a tupperware box filled with rice and moisture packets!
So i thought as a make do id dig my sons crappy acer aspire one out and even though its dog slow try to get it performing a bit just for internet, torrent downloading and media playing.
Ive carried out a factory reset but its still awfully slow, then I read about turning netbooks into android/chromebooks.
via a usb stick.
Ive got so far as to boot to a Chromium build but it sees no networks and allows you to go no further until you are logged on a network. This is because you have to do something to get the drivers working for the Broadcom wireless network adaptors which is explained at the following link:
http://arnoldthebat.co.uk/wordpress/2013/02/24/how-to-get-the-broadcom-wireless-drivers-working/
Now I get to booting into chromium then into this su command line and log into as chronos but it asked for a password.
I dont know what it is! From reading the text it seems there is a way to make one but its way over my head.
Anyone know what I can do?
http://i.imgur.com/U2mhzEM.jpg
Also on the link it shows a series of what I assume are commands - am I suppossed to type these one by one and press enter? What is the significance if any of the blue and red text?
I'll be really grateful for any help.
One by one. The coloring is just pretty formatting
sudo means Super Do. It is a command that makes you an administrator able to do anything on the system; by default Linux systems only allow you to do stuff in your home directory.
su is a command that means Substitute User. It is a way of taking your login session and transferring it to another user. By default is changes you to the root (Linuxspeech for admin) user.
The line above says make me an admin.
This runs a program called mount. All filesystems on a hard disk are like big trees. This is telling the system to use the specific file system found at the location /. That slash isn't a misprint, it is the top file on your filesystem, sort of like the C: in Windows.
When using a command line, you run a program then feed it arguments to tell it what to do. Here you are saying run mount using the options (-o) remount and rw. Then you are telling it where to mount the file system at the top level /.
The command on that blog might actually fail because it has used a comma to separate the options it is feeding to mount - remount and rw but has left a space between them which sometimes throws it off. I would suggest running the command as mount -o remount,rw /
As you might have gathered, the filesystem is already mounted at / so a logical question would be to ask why it needs mounting again. It is done to reset all permissions on the filesystem so that nothing is left read-only
sudo echo "blacklist b43" >> /etc/modprobe.d/blacklist.conf
sudo echo "blacklist b43legacy" >> /etc/modprobe.d/blacklist.conf
sudo echo "blacklist ssb" >> /etc/modprobe.d/blacklist.conf
sudo echo "blacklist bcma" >> /etc/modprobe.d/blacklist.conf
sudo echo "wl" >> /etc/modules
In these commands, you are writing text into a file using a command line rather than a text editor. sudo elevates the command to admin, echo is the program used to literally echo the text you have put inside those quotes and the >> sign is used to tell it where to echo the text.
For example, if you ran the command echo hello then the console would just print back at you hello. The direction arrows tell it to echo it into that specific file contained at /etc/modprobe.d/ which is the directory. Linux is very picky on opening and closing quotes by the way and anything that you put inside of them is treated as a single phrase of text.
sudo touch /etc/modprobe.d/wl.conf
sudo echo "alias wlan0 wl" >> /etc/modprobe.d/wl.conf
touch is a Linux program used to create files. Here you are using sudo to elevate it as an admin command then touch to create the file wl.conf in the directory /etc/modprobe.d/. Then using echo as above you are writing into that file.
cd /lib/modules/3.4.0/kernel/drivers/net/wireless/
Here you are using cd. cd is a Linux command meaning Change Directory. You are changing the directory which you are currently working in to the /lib/modules/3.4.0/kernel/drivers/net/wireless/ directory.
wget <a class="postlink" href="http://chromium.arnoldthebat.co.uk/files/fw/lib/modules/3.4.0/kernel/drivers/net/wireless/wl.ko" onclick="window.open(this.href);return false;">http://chromium.arnoldthebat.co.uk/file ... less/wl.ko</a>
wget is a Linux program used to download files from the internet. Here you are telling it to download the file wk.ko from that link. This is why you just changed your directory, to make sure this was downloaded to the right place.
sudo insmod /lib/modules/3.4.0/kernel/net/wireless/cfg80211.ko
sudo insmod /lib/modules/3.4.0/kernel/net/wireless/lib80211.ko
sudo insmod /lib/modules/3.4.0/kernel/net/wireless/lib80211_crypt_ccmp.ko
sudo insmod /lib/modules/3.4.0/kernel/net/wireless/lib80211_crypt_tkip.ko
sudo insmod /lib/modules/3.4.0/kernel/net/wireless/lib80211_crypt_wep.ko
sudo insmod /lib/modules/3.4.0/kernel/drivers/net/wireless/wl.ko
insmod is a Linux program used to Insert a Module into the Linux kernel. Here you are taking the wireless drivers listed (the files ending in .ko) and telling Linux that they exist and to use them. Obviously running them as an admin command.
depmod is a Linux program that is used to check Module Dependencies after using insmod. The -a argument just makes it search for dependencies everywhere it can.