MOZ_NO_REMOTE=hell,yes firefox -P sidekickProfileOr, in a nice Unix way, create aliases to do the job:
MOZ_NO_REMOTE= firefox -ProfileManager
alias ff2=`MOZ_NO_REMOTE= firefox -P sidekickProfile`
alias pm=`MOZ_NO_REMOTE= firefox -ProfileManager`
MOZ_NO_REMOTE=hell,yes firefox -P sidekickProfileOr, in a nice Unix way, create aliases to do the job:
MOZ_NO_REMOTE= firefox -ProfileManager
alias ff2=`MOZ_NO_REMOTE= firefox -P sidekickProfile`
alias pm=`MOZ_NO_REMOTE= firefox -ProfileManager`
For a lot of people, the lack of a proper downloader in linux to use with their premium rapidshare accounts seems to be quite a turn off. Well, there’s jDownloader, but I find that a bit too heavy. Unknown to them, they already have a good downloading tool, called wget.
Its basically a two step process being:
$ wget --save-cookies ~/cookies.txt --post-data "login=USERNAME&password=PASSWORD" -O - https://ssl.rapidshare.com/cgi-bin/premiumzone.cgi > /dev/null
Replace USERNAME & PASSWORD with your own Rapidshare details.
What this script does is login to Rapidshare and saves the cookie to a file named cookies.txt in your home directory. Any normal HTML output is piped to the resident unix blackhole, /dev/null.
~/cookies.txt To actually download, use the following command:-
wget --load-cookies ~/cookies.txt your-rapidshare-url.com/file-link.html
Happy downloading.
# Disables packet forwarding
net.ipv4.ip_forward = 0
# Enables source route verification
net.ipv4.conf.default.rp_filter = 1
# Disables the magic-sysrq key
kernel.sysrq = 0
# Decrease the time default value for tcp_fin_timeout connection
net.ipv4.tcp_fin_timeout = 25
# Decrease the time default value for tcp_keepalive_time connection
net.ipv4.tcp_keepalive_time = 3600
# Turn on the tcp_window_scaling
net.ipv4.tcp_window_scaling = 1
# Turn on the tcp_sack
net.ipv4.tcp_sack = 1
# tcp_fack should be on because of sack
net.ipv4.tcp_fack = 1
# Turn on the tcp_timestamps
net.ipv4.tcp_timestamps = 1
# Enable TCP SYN Cookie Protection
net.ipv4.tcp_syncookies = 1
# Enable ignoring broadcasts request
net.ipv4.icmp_echo_ignore_broadcasts = 1
# Disable ICMP Redirect Acceptance
net.ipv4.conf.all.accept_redirects = 0
# Enable bad error message Protection
net.ipv4.icmp_ignore_bogus_error_responses = 1
# Don't Log Spoofed Packets, Source Routed Packets, Redirect Packets
net.ipv4.conf.all.log_martians = 0
# Make more local ports available
net.ipv4.ip_local_port_range = 1024 65000
# Increase maximum amount of memory allocated to shm
kernel.shmmax = 1073741824
# Improve file system performance
vm.bdflush = 100 1200 128 512 15 5000 500 1884 2
# This will increase the amount of memory available for socket input/output queues
net.ipv4.tcp_rmem = 4096 25165824 25165824
net.core.rmem_max = 25165824
net.core.rmem_default = 25165824
net.ipv4.tcp_wmem = 4096 65536 25165824
net.core.wmem_max = 25165824
net.core.wmem_default = 65536
net.core.optmem_max = 25165824
#ab wann speicher als dreckig betrachtet wird
vm.dirty_backgr
#vfs cache pressure
vm.vfs_cache_pr
#gibt den grad an wann ausgelagert wird
vm.swappiness=2
# If you are feeling daring, you can also use these settings below, otherwise just remove them. (Should increase performance)
net.core.netdev_max_backlog = 2500
net.ipv4.tcp_tw_recycle = 1
net.ipv4.tcp_tw_reuse = 1
After you make the changes to the file, you can make them effective immediately by typing in /sbin/sysctl -pAddress Bar -> about:config
Filter: ->
network.dns.disableIPv6 -> true
network.http.pipelining -> true
network.http.pipelining.maxrequests -> 8
network.http.proxy.pipelining -> true
Address Bar -> about:config
Filter: accessibility.typeaheadfind.enablesound -> false
Address Bar -> about:config
Filter: -> browser.backspace_action -> 0
Address Bar -> about:config
Filter the configs options
Filter: -> alerts.totalOpenTime -> 500
Address Bar -> about:config
Filter: -> dom.popup_maximum -> 5
Address Bar -> about:config
browser.urlbar.hideGoButton -> Yes
Address Bar -> about:config
New -> String
browser.cache.disk.parent_directory
/tmp
| tar -xvf file.tgz |
| /sbin/lspci |
| /sbin/lsusb |
| rpm -qpR somerpm.rpm |
| locate file.name |
| rpm -Uvh --oldpackage olderrpm.rpm |
| rpm -ivh nameofrpm.rpm |
| rpm -e nameofrpm.rpm |
| rpm -e --nodeps nameofrpm.rpm |
| fdisk -l |
| history -c |
| ctrl+shift + drag file/folder to Desktop |
| rm -fr /home/$(logname)/.local/share/Trash/files |
| su - echo 'name ALL=(ALL) ALL' >> /etc/sudoer chmod +w /etc/sudoers echo 'name ALL=(ALL) PASSWD:ALL' >> /etc/sudoers chmod -w /etc/sudoers |
| su echo 'name ALL=(ALL) ALL' >> /etc/sudoer chmod +w /etc/sudoers echo 'name ALL=(ALL) NOPASSWD:ALL' >> /etc/sudoers chmod -w /etc/sudoers |
Ubuntu Server is like any Linux variety, and has full multi-user capabilities, and a common task on any server is adding users.
useradd
The useradd command will let you add a new user easily from the command line:
useradd
This command adds the user, but without any extra options your user won't have a password or a home directory.
You can use the -d option to set the home directory for the user. The -m option will force useradd to create the home directory. We'll try creating a user account with those options, and then use the passwd command to set the password for the account. You can alternatively set a password using -p on the useradd command, but I prefer to set the password using passwd.
sudo useradd -d /home/testuser -m testuser
sudo passwd testuser
This will create the user named testuser and give them their own home directory in /home/testuser. The files in the new home directory are copied from the /etc/skel folder, which contains default home directory files. If you wanted to set default values for your users, you would do so by modifying or adding files in that directory. If we take a look at the new home directory for the user:
geek@ubuntuServ:/etc/skel$ ls -la /home/testuser
total 20
drwxr-xr-x 2 testuser testuser 4096 2006-12-15 11:34 .
drwxr-xr-x 5 root root 4096 2006-12-15 11:37 ..
-rw-r–r– 1 testuser testuser 220 2006-12-15 11:34 .bash_logout
-rw-r–r– 1 testuser testuser 414 2006-12-15 11:34 .bash_profile
-rw-r–r– 1 testuser testuser 2227 2006-12-15 11:34 .bashrc
You'll notice that there are bash scripts in this directory. If you wanted to set default path options for all new users, you would do so by modifying the files in /etc/skel, which would then be used to create these files by the useradd command.
adduser
The adduser command is even easier than the useradd command, because it prompts you for each piece of information. I find it slightly funny that there are two virtually identically named commands that do the same thing, but that's linux for you. Here's the syntax:
adduser
Example:
geek@ubuntuServ:/etc/skel$ sudo adduser thegeek
Password:
Adding user `thegeek'…
Adding new group `thegeek' (1004).
Adding new user `thegeek' (1004) with group `thegeek'.
Creating home directory `/home/thegeek'.
Copying files from `/etc/skel'
Enter new UNIX password:
Retype new UNIX password:
No password supplied
Enter new UNIX password:
Retype new UNIX password:
passwd: password updated successfully
Changing the user information for thegeek
Enter the new value, or press ENTER for the default
Full Name []: The Geek
Room Number []: 0
Work Phone []: 555-1212
Home Phone []: 555-1212
Other []:
Is the information correct? [y/N] y
In case you want to install eBox in a new machine from scratch, we recommend you use our tailored Ubuntu installer, it will install Ubuntu Hardy, ebox packages and all its dependences automatically.
It is available here. You just need to burn it into a CD, then insert it on a CD-ROM unit and reboot your PC (Your computer BIOS must have its CD Boot option enabled).
The installation takes two steps. First, it boots from CD and starts the installation. Once it’s rebooted, you should boot from the recently installed eBox with the CD installer inside the drive to finish the process.
If you already have an Ubuntu Hardy installed, add to your /etc/apt/sources.list this line:
deb http://ppa.launchpad.net/ebox/ubuntu hardy main
Now we’ll run:
$ sudo apt-get update
$ sudo apt-get install "^ebox-.*"
Test our latest packages and give us some feedback and you will be helping the project a lot. If you are up for it, go add these apt sources:
deb http://ppa.launchpad.net/ebox-unstable/ubuntu hardy main
Yeay! We already have working packages for the current Ubuntu release!!
deb http://ppa.launchpad.net/ebox-unstable/ubuntu intrepid main
If you want to install ebox from the source packages of this server, it’s recommended to read each installation instructions from INSTALL file of each module.
Once “eBox platform” is finally installed, we can access it from a web browser, writing the IP adress we configured before the installation on our system. Please remember, eBox uses HTTPS to access management interface. Default password for eBox administration interface is ebox
Ubuntu server for PXE environment (tested on Jaunty 9.04 server).On the Ubuntu server:
Wired network.
PXE boot capable network card on target machine.
/pxeDownload syslinux from here:
/pxe/images
/pxe/images/ubuntu
/pxe/pxelinux.cfg
DEFAULT menu.c32Copy the contents of the Ubuntu live CD into /pxe/images/ubuntu
PROMPT 0
NOESCAPE 0
ALLOWOPTIONS 0
TIMEOUT 600
MENU TITLE PXE Boot Menu
LABEL Ubuntu Jaunty Live Desktop
kernel images/ubuntu/casper/vmlinuz
append boot=casper netboot=nfs nfsroot=192.168.1.101:/pxe/images/ubuntu initrd=images/ubuntu/casper/initrd.gz -- splash
LABEL Ubuntu Jaunty Live Install
kernel images/ubuntu/casper/vmlinuz
append boot=casper netboot=nfs nfsroot=192.168.1.101:/pxe/images/ubuntu initrd=images/ubuntu/casper/initrd.gz -- splash only-ubiquity
apt-get install dnsmasq nfs-kernel-serveredit /etc/dnsmasq.conf & replace all text with:
no-hostsMake sure you replace the ip addresses with ones suitable for your network.
server=/localnet/192.168.1.1
dhcp-range=192.168.1.40,192.168.1.50,2h
dhcp-boot=pxelinux.0
enable-tftp
tftp-root=/pxe
resolv-file=/etc/nameservers
dhcp-option=3,192.168.1.1
/pxe/images *(ro,sync,subtree_check)Add your DNS nameservers by creating the new file (this example is for opendns):
nameserver 208.67.222.222Reboot your server (or restart dnsmasq & nfs-kernel-server).
nameserver 208.67.220.220