Search - Login
ui-buttonInstall aptitudeType:sudo apt-get install aptitude
Type:
sudo apt-get install aptitude
ui-buttonConfigure ufw firewallInstall ufw firewall:sudo aptitude install ufw gufwActivate netbios support:sudo vi /etc/default/ufwBy adding:# The nf_contrack_netbios_ns has been addedIPT_MODULES="nf_conntrack_ftp nf_nat_ftp nf_conntrack_irc nf_nat_irc nf_conntrack_netbios_ns"Then apply the following rules:Generic rules:sudo ufw default deny incomingsudo ufw default allow outgoingDomain:sudo ufw allow domainInternet:sudo ufw allow sshsudo ufw allow ftpsudo ufw allow wwwsudo ufw allow httpssudo ufw allow http-altEmails:sudo ufw allow imapssudo ufw allow ssmtpsudo ufw allow xmpp-clientRemote desktop:sudo ufw allow 5900Samba:sudo ufw allow 113sudo ufw allow proto tcp from 192.168.0.0/24 to 192.168.0.0/24 port 135sudo ufw allow proto tcp from 192.168.0.0/24 to 192.168.0.0/24 port 139sudo ufw allow proto tcp from 192.168.0.0/24 to 192.168.0.0/24 port 445sudo ufw allow proto udp from 192.168.0.0/24 to 192.168.0.0/24 port 137sudo ufw allow proto udp from 192.168.0.0/24 to 192.168.0.0/24 port 138Transmission:sudo ufw allow 9099sudo ufw allow 20500:20599/tcpsudo ufw allow 20500:20599/udpPrinter sharing:sudo ufw allow 631NTP:sudo ufw allow ntpSqueezeserver:sudo ufw allow 9000sudo ufw allow 9090sudo ufw allow 3483Before applying the new rules, the logging can be activated with:sudo ufw logging onThen reload the configuration with:sudo ufw enableThe firewall status is visible with:sudo ufw statusTo stop the firewall, the command is:sudo ufw disableAll the existing rules can be removed with:sudo ufw resetAnd finally, to display the log, type:sudo tail -f /var/log/ufw.log
Install ufw firewall:
sudo aptitude install ufw gufw
Activate netbios support:
sudo vi /etc/default/ufw
By adding:
# The nf_contrack_netbios_ns has been addedIPT_MODULES="nf_conntrack_ftp nf_nat_ftp nf_conntrack_irc nf_nat_irc nf_conntrack_netbios_ns"
Then apply the following rules:
Generic rules:
sudo ufw default deny incomingsudo ufw default allow outgoing
Domain:
sudo ufw allow domain
Internet:
sudo ufw allow sshsudo ufw allow ftpsudo ufw allow wwwsudo ufw allow httpssudo ufw allow http-alt
Emails:
sudo ufw allow imapssudo ufw allow ssmtpsudo ufw allow xmpp-client
Remote desktop:
sudo ufw allow 5900
Samba:
sudo ufw allow 113sudo ufw allow proto tcp from 192.168.0.0/24 to 192.168.0.0/24 port 135sudo ufw allow proto tcp from 192.168.0.0/24 to 192.168.0.0/24 port 139sudo ufw allow proto tcp from 192.168.0.0/24 to 192.168.0.0/24 port 445sudo ufw allow proto udp from 192.168.0.0/24 to 192.168.0.0/24 port 137sudo ufw allow proto udp from 192.168.0.0/24 to 192.168.0.0/24 port 138
Transmission:
sudo ufw allow 9099sudo ufw allow 20500:20599/tcpsudo ufw allow 20500:20599/udp
Printer sharing:
sudo ufw allow 631
NTP:
sudo ufw allow ntp
Squeezeserver:
sudo ufw allow 9000sudo ufw allow 9090sudo ufw allow 3483
Before applying the new rules, the logging can be activated with:
sudo ufw logging on
Then reload the configuration with:
sudo ufw enable
The firewall status is visible with:
sudo ufw status
To stop the firewall, the command is:
sudo ufw disable
All the existing rules can be removed with:
sudo ufw reset
And finally, to display the log, type:
sudo tail -f /var/log/ufw.log
ui-buttonActivate remove desktopIn ubuntu settings, activate sharing desktop remotely.
In ubuntu settings, activate sharing desktop remotely.
ui-buttonMount network drivesFirst create the destination folders:sudo mkdir /nassudo mkdir /nas/Documentssudo mkdir /nas/Livressudo mkdir /nas/Musiquesudo mkdir /nas/Photossudo mkdir /nas/Cabinetsudo mkdir /nas/Sauvegardessudo mkdir /nas/Videosudo mkdir /nas/Tmpsudo mkdir /nas/Downloadsudo mkdir /nas/FreeboxWith the proper rights:sudo chown -R LOGIN /nasThen edit the file:sudo vi /etc/fstabAnd add the following lines (replace LOGIN and PASSWORD with their values):# Add Buffalo NAS HDD mount//192.168.0.100/Documents /nas/Documents cifs username=LOGIN,password=PASSWORD,rw,iocharset=utf8,file_mode=0777,dir_mode=0777,_netdev 0 0//192.168.0.100/Livres /nas/Livres cifs username=LOGIN,password=PASSWORD,rw,iocharset=utf8,file_mode=0777,dir_mode=0777,_netdev 0 0//192.168.0.100/Musique /nas/Musique cifs username=LOGIN,password=PASSWORD,rw,iocharset=utf8,file_mode=0777,dir_mode=0777,_netdev 0 0//192.168.0.100/Photos /nas/Photos cifs username=LOGIN,password=PASSWORD,rw,iocharset=utf8,file_mode=0777,dir_mode=0777,_netdev 0 0//192.168.0.100/Cabinet /nas/Cabinet cifs username=LOGIN,password=PASSWORD,rw,iocharset=utf8,file_mode=0777,dir_mode=0777,_netdev 0 0//192.168.0.100/Sauvegardes /nas/Sauvegardes cifs username=LOGIN,password=PASSWORD,rw,iocharset=utf8,file_mode=0777,dir_mode=0777,_netdev 0 0//192.168.0.100/Video /nas/Video cifs username=LOGIN,password=PASSWORD,rw,iocharset=utf8,file_mode=0777,dir_mode=0777,_netdev 0 0//192.168.0.100/Tmp /nas/Tmp cifs username=LOGIN,password=PASSWORD,rw,iocharset=utf8,file_mode=0777,dir_mode=0777,_netdev 0 0//192.168.0.100/Download /nas/Download cifs username=LOGIN,password=PASSWORD,rw,iocharset=utf8,file_mode=0777,dir_mode=0777,_netdev 0 0# Add freebox NAS//192.168.0.254/Disque\040dur /nas/Freebox cifs username=freebox,password=PASSWORD,directio,uid=1000,iocharset=utf8,codepage=cp850,file_mode=0777,dir_mode=0777,_netdev 0 0To apply the new configuration without reboot:sudo mount -aTo disable the configuration:sudo umount -a
First create the destination folders:
sudo mkdir /nassudo mkdir /nas/Documentssudo mkdir /nas/Livressudo mkdir /nas/Musiquesudo mkdir /nas/Photossudo mkdir /nas/Cabinetsudo mkdir /nas/Sauvegardessudo mkdir /nas/Videosudo mkdir /nas/Tmpsudo mkdir /nas/Downloadsudo mkdir /nas/Freebox
With the proper rights:
sudo chown -R LOGIN /nas
Then edit the file:
sudo vi /etc/fstab
And add the following lines (replace LOGIN and PASSWORD with their values):
# Add Buffalo NAS HDD mount//192.168.0.100/Documents /nas/Documents cifs username=LOGIN,password=PASSWORD,rw,iocharset=utf8,file_mode=0777,dir_mode=0777,_netdev 0 0//192.168.0.100/Livres /nas/Livres cifs username=LOGIN,password=PASSWORD,rw,iocharset=utf8,file_mode=0777,dir_mode=0777,_netdev 0 0//192.168.0.100/Musique /nas/Musique cifs username=LOGIN,password=PASSWORD,rw,iocharset=utf8,file_mode=0777,dir_mode=0777,_netdev 0 0//192.168.0.100/Photos /nas/Photos cifs username=LOGIN,password=PASSWORD,rw,iocharset=utf8,file_mode=0777,dir_mode=0777,_netdev 0 0//192.168.0.100/Cabinet /nas/Cabinet cifs username=LOGIN,password=PASSWORD,rw,iocharset=utf8,file_mode=0777,dir_mode=0777,_netdev 0 0//192.168.0.100/Sauvegardes /nas/Sauvegardes cifs username=LOGIN,password=PASSWORD,rw,iocharset=utf8,file_mode=0777,dir_mode=0777,_netdev 0 0//192.168.0.100/Video /nas/Video cifs username=LOGIN,password=PASSWORD,rw,iocharset=utf8,file_mode=0777,dir_mode=0777,_netdev 0 0//192.168.0.100/Tmp /nas/Tmp cifs username=LOGIN,password=PASSWORD,rw,iocharset=utf8,file_mode=0777,dir_mode=0777,_netdev 0 0//192.168.0.100/Download /nas/Download cifs username=LOGIN,password=PASSWORD,rw,iocharset=utf8,file_mode=0777,dir_mode=0777,_netdev 0 0# Add freebox NAS//192.168.0.254/Disque\040dur /nas/Freebox cifs username=freebox,password=PASSWORD,directio,uid=1000,iocharset=utf8,codepage=cp850,file_mode=0777,dir_mode=0777,_netdev 0 0
To apply the new configuration without reboot:
sudo mount -a
To disable the configuration:
sudo umount -a
ui-buttonImprove unityActivate the display of hidden and backup files in nautilus settings, then type:sudo aptitude install nautilus-image-converter nautilus-open-terminalUncompress the following file content:http://www.guenmat.com/portail/public/file/servlet?code=7_1407676044440in the user shortcuts folder:/home/guenmat/.local/share/applications
Activate the display of hidden and backup files in nautilus settings, then type:
sudo aptitude install nautilus-image-converter nautilus-open-terminal
Uncompress the following file content:
http://www.guenmat.com/portail/public/file/servlet?code=7_1407676044440
in the user shortcuts folder:
/home/guenmat/.local/share/applications
ui-buttonGoogle ChromeDownload the latest google chrome at:http://www.google.com/chrome?hl=frThen type:sudo dpkg -i google-chrome-stable_current_*.deb
Download the latest google chrome at:
http://www.google.com/chrome?hl=fr
Then type:
sudo dpkg -i google-chrome-stable_current_*.deb
ui-buttonInstall softwares• MPlayer• Filezilla• Calibre• Comix• Gimp
• MPlayer
• Filezilla
• Calibre
• Comix
• Gimp
ui-buttonStartup applicationsBy default, ubuntu hides all startup applications in tool "Startup applications". To display them all, type:cd /etc/xdg/autostart/sudo sed --in-place 's/NoDisplay=true/NoDisplay=false/g' *.desktopIn order to hide them again, type:cd /etc/xdg/autostart/sudo sed --in-place 's/NoDisplay=false/NoDisplay=true/g' *.desktop
By default, ubuntu hides all startup applications in tool "Startup applications". To display them all, type:
cd /etc/xdg/autostart/sudo sed --in-place 's/NoDisplay=true/NoDisplay=false/g' *.desktop
In order to hide them again, type:
cd /etc/xdg/autostart/sudo sed --in-place 's/NoDisplay=false/NoDisplay=true/g' *.desktop
ui-buttonConfigure transmissionDo not forget to add blocking rules from the site:http://www.iblocklist.com/lists.phpMore precisely for France, apply:http://list.iblocklist.com/?list=fr&fileformat=p2p&archiveformat=gzStart transmission on startuptransmission-gtk -m
Do not forget to add blocking rules from the site:
http://www.iblocklist.com/lists.php
More precisely for France, apply:
http://list.iblocklist.com/?list=fr&fileformat=p2p&archiveformat=gz
Start transmission on startup
transmission-gtk -m
ui-buttonAdd drivers for printer Samsung SCX-3405FWEdit the file:sudo vi /etc/apt/sources.listAnd add the following lines:#add the Samsung Unified Driver Repodeb http://www.bchemnet.com/suldr/ debian extraThen type:wget http://www.bchemnet.com/suldr/suldr.gpgsudo apt-key add suldr.gpgsudo aptitude updatesudo aptitude install samsungmfp-data samsungmfp-driver samsungmfp-network samsungmfp-scanner samsungmfp-configurator-data samsungmfp-configurator-qt4 libsane-extrasDeclare the printer:sudo vi /etc/sane.d/xerox_mfp.confBy adding# Samsung SCX-3400usb 0x04e8 0x344fDo the same in:sudo vi /lib/udev/rules.d/40-libsane.rulesBy adding# Samsung SCX-3400ATTRS{idVendor}=="04e8", ATTRS{idProduct}=="344f", ENV{libsane_matched}="yes"Then, plug the printer and follow the instructions.The scanner only works on USB.
Edit the file:
sudo vi /etc/apt/sources.list
And add the following lines:
#add the Samsung Unified Driver Repodeb http://www.bchemnet.com/suldr/ debian extra
wget http://www.bchemnet.com/suldr/suldr.gpgsudo apt-key add suldr.gpgsudo aptitude updatesudo aptitude install samsungmfp-data samsungmfp-driver samsungmfp-network samsungmfp-scanner samsungmfp-configurator-data samsungmfp-configurator-qt4 libsane-extras
Declare the printer:
sudo vi /etc/sane.d/xerox_mfp.conf
By adding
# Samsung SCX-3400usb 0x04e8 0x344f
Do the same in:
sudo vi /lib/udev/rules.d/40-libsane.rules
# Samsung SCX-3400ATTRS{idVendor}=="04e8", ATTRS{idProduct}=="344f", ENV{libsane_matched}="yes"
Then, plug the printer and follow the instructions.
The scanner only works on USB.
ui-buttonInstall squeezecenterDownload the latest version at:http://www.mysqueezebox.com/downloadThen type:sudo dpkg -i logitechmediaserver_*_all.debThe sofware will be available at:http://localhost:9000
Download the latest version at:
http://www.mysqueezebox.com/download
sudo dpkg -i logitechmediaserver_*_all.deb
The sofware will be available at:
http://localhost:9000
ui-buttonInstall ConkyType:sudo aptitude install conkyThen download scripts at:http://www.guenmat.com/portail/public/file/servlet?code=6_1407676044387And type:tar xzvf conkytheme.tar.gzmv .conkytheme /home/guenmatTo try manually the configuration, type:conky -c /home/guenmat/.conkytheme/conkyrc-eeebox-big-2In order to start conky automatically on startup, create a new script with:vi ~/conkystartup.shAnd paste the following content:#!/bin/bashsleep 15&&conky -c /home/guenmat/.conkytheme/conkyrc-eeebox-big-2Change the script execution rights:sudo chmod +x ~/conkystartup.shThen use the ubuntu "Startupt applications" tool to create a new entry calling the previous script.
sudo aptitude install conky
Then download scripts at:
http://www.guenmat.com/portail/public/file/servlet?code=6_1407676044387
And type:
tar xzvf conkytheme.tar.gzmv .conkytheme /home/guenmat
To try manually the configuration, type:
conky -c /home/guenmat/.conkytheme/conkyrc-eeebox-big-2
In order to start conky automatically on startup, create a new script with:
vi ~/conkystartup.sh
And paste the following content:
#!/bin/bashsleep 15&&conky -c /home/guenmat/.conkytheme/conkyrc-eeebox-big-2
Change the script execution rights:
sudo chmod +x ~/conkystartup.sh
Then use the ubuntu "Startupt applications" tool to create a new entry calling the previous script.
ui-buttonInstall teamviewerDownload the latest 32bits version at:wget http://download.teamviewer.com/download/teamviewer_linux.debThen type:sudo aptitude install gdebisudo gdebi teamviewer_linux.debsudo rm -f teamviewer_linux.debValidate and proceed with the installation.
Download the latest 32bits version at:
wget http://download.teamviewer.com/download/teamviewer_linux.deb
sudo aptitude install gdebisudo gdebi teamviewer_linux.debsudo rm -f teamviewer_linux.deb
Validate and proceed with the installation.
ui-buttonBackup dataType:rsync -ar --delete --progress --size-only /nas/Cabinet/Papiers/* /media/DDExterne/Cabinetrsync -ar --delete --progress --size-only /nas/Documents/* /media/DDExterne/Documentsrsync -ar --delete --progress --size-only /nas/Photos/* /media/DDExterne/Photos
rsync -ar --delete --progress --size-only /nas/Cabinet/Papiers/* /media/DDExterne/Cabinetrsync -ar --delete --progress --size-only /nas/Documents/* /media/DDExterne/Documentsrsync -ar --delete --progress --size-only /nas/Photos/* /media/DDExterne/Photos
ui-buttonDisable crash reportsType:sudo vi /etc/default/whoopsieAnd replace the value for the line to falsereport_crashes=falseThen stop the servicesudo stop whoopsie
sudo vi /etc/default/whoopsie
And replace the value for the line to false
report_crashes=false
Then stop the service
sudo stop whoopsie