Archive for the ‘Debian’ Category
Linux file system hierarchy
Posted: March 7, 2015 in archlinux, Debian, SlackwareTags: Configure, file, firewall, hierarchy, linux, system
Configure a Network Bridge on Ubuntu Server
Posted: June 23, 2014 in Debian, My liveTags: aptitude, br0, bridge, Configure, dhcp, network, share, skrip, SSH, steve, ubuntu
Always forget:
How to configure Network Bridge on Ubuntu Server
1. Configure DHCP on brO
######################
# The loopback network interface
auto lo
iface lo inet loopback
# The primary network interface
#auto eth0
#iface eth0 inet dhcp
auto br0
iface br0 inet dhcp
bridge_ports eth0
bridge_fd 9
bridge_hello 2
bridge_maxage 12
bridge_stp off
######################
2. Configure Static IP on brO
######################
# The loopback network interface
auto lo
iface lo inet loopback
# The primary network interface
#auto eth0
#iface eth0 inet dhcp
auto br0
iface br0 inet static
address 192.168.1.200
broadcast 192.168.1.255
netmask 255.255.255.0
gateway 192.168.1.254
bridge_ports eth0
bridge_fd 9
bridge_hello 2
bridge_maxage 12
bridge_stp off
######################
Date in ubuntu
Posted: October 28, 2011 in DebianTags: aptitude, install, mst, my, ntp, pico, sirim, skrip, takwin, ubuntu
Selalu lupa….
1. Install ntp
root@webmail:~# aptitude install ntp
2. Get date from mst.sirim.my
ntpdate mst.sirim.my
3. Set script
root@webmail:~# pico /skrip/takwin
################ cut here ##################
#!/bin/bash
ntpdate mst.sirim.my
################ cut here ##################
4. Set Cron
root@webmail:~# crontab -u root -e
*/50 * * * * /skrip/takwin >/dev/null 2>&1
5. Run takwin
root@webmail:~# /skrip/takwin
28 Oct 19:52:27 ntpdate[1162]: step time server 202.190.26.30 offset 4.735816 sec
I want to install Debian with basic GUI using GNOME.
Without open office and others things.
Genome Core Issued this command.
apt-get update
apt-get install xserver-xorg-core gdm gnome-core
KDE Core issued this command
apt-get update
apt-get install xserver-xorg-core kdm kde-core
Start the server using this command
Gnome :
/etc/init.d/gdm start
KDE
/etc/init.d/kdm start
*** If xserver fail to start issued this command
dpkg-reconfigure xserver-xorg
And specify the driver vesa in section Device inside the /etc/X11/xorg.conf file.
Install Display driver if needed.
My Zimbra wont start …
Check my zimbra server status i get this error:
zimbra@webmail:tail /var/log/zimbra.log
zmmtaconfig: Skipping All MTA Authentication Target URLs update.
zmmtaconfig: Skipping getAllMtaAuthURLs ERROR: service.FAILURE (system failure: ZimbraLdapContext) (cause: javax.net.ssl.SSLHandshakeException sun.security.validator.ValidatorException: PKIX path validation failed: java.security.cert.CertPathValidatorException: timestamp check failed)
It’s happen when your server certificate expired…. (i know when i google the problem)
The solutions is.
1. Create New Certificte Authority (CA)
root@webmail:~# /opt/zimbra/bin/zmcertmgr createca -new
2. Generate CA expired on 365 days
root@webmail:~# /opt/zimbra/bin/zmcertmgr createcrt -new -days 365
3. Deploy the certificate
root@webmail:~# /opt/zimbra/bin/zmcertmgr deploycrt self
4. Deploy the CA
root@webmail:~# /opt/zimbra/bin/zmcertmgr deployca
5. Verifications certificate
root@webmail:~# /opt/zimbra/bin/zmcertmgr viewdeployedcrt
after all that issued this command in one line
root@webmail:~# /opt/zimbra/java/bin/keytool -import -alias root -keystore /opt/zimbra/java/jre/lib/security/cacerts -storepass changeit -file /opt/zimbra/conf/ca/ca.pem
On the questions Trust the certificate : Yes
After all have done than issued this command
root@webmail:~# su – zimbra
zimbra@webmail:~$ zmcontrol status
zimbra@webmail:~$ zmcontrol stop
zimbra@webmail:~$ zmcontrol start
Ok you ZCS server will run smooth.
Zentyal – Server Administrator
Zentyal is Web Gui Server / firewall sush as pfsense , ClearOS and many more.
The different about Zentyal (knows as e-box) is we can manual istall along with ubuntu 10.04 server editions.
That what i did…Install it without GUI..
If somebody out there need install zentyal with gui you can download it here.
But if you wanna install without GUI / Desktop Version. Use this guide.
1. Install Ubuntu Server 10.04.
Zentyal 2.0 packages
2. Add to your /etc/apt/sources.list:
deb http://ppa.launchpad.net/zentyal/2.0/ubuntu lucid main
In order to authenticate the packages in the PPA you can import its public key with the following command:
apt-key adv –keyserver keyserver.ubuntu.com –recv-keys 10E239FF
Update your package database
sudo apt-get update
After that, you just need to run:
sudo apt-get install zentyal
And then point your browser to the Zentyal IP address and follow the instructions on screen:
You will see Zentyal Dashboard after complete the wizard.
For me Zentyal is slow…
but good enough for manage the server / firewall.
” We can handle multiple server by hand, but we cannot handle it alone that’s why we have to install GUI interface for others people to take care of our server”
“People who know something that “click & click” not the black and white screen”
Debian/Kfreebsd Source list.
#############################################
deb http://security.debian.org/ squeeze/updates main
deb-src http://security.debian.org/ squeeze/updates main
deb http://ftp2.fr.debian.org/debian/ squeeze main contrib non-free
deb http://backports.debian.org/debian-backports squeeze-backports main contrib non-free
#############################################
This is simple code to grep file …
This code using by other to grep squid configurations and other like apache.conf.
# cat /etc/squid/squid.conf | sed ‘/ *#/d; /^ *$/d’
(thanks to kotnik for small sed trick)
to safe file use this
# cat /etc/squid/squid.conf | sed ‘/ *#/d; /^ *$/d’ > /etc/squid/squid.conf-new
to view or search something in squid access.log use this command
# grep ‘string-to-search’ /var/log/squid/access.log
Simple trick but you can use it…
### http://www.cyberciti.biz/tips/linux-setup-transparent-proxy-squid-howto.html
1. Install apache2-mpm-itk
aptitude install apache2-mpm-itk
2. After Create user
adduser WebAdmin
**force user to use apache group
usermod -g www-data WebAdmin
3. Add this line on vhost
<IfModule mpm_itk_module>
AssignUserId WebAdmin www-data
</IfModule>
4. Chown folder to user
chown WebAdmin:www-data /var/www/web/* -R
5. Reload apache
service apache2 reload