Showing posts with label fedora. Show all posts
Showing posts with label fedora. Show all posts

Tuesday, October 15, 2013

Git: install git 1.8.4 on Fedora 14

cd /usr/local/src/
sudo wget https://www.kernel.org/pub/software/scm/git/git-1.8.4.tar.gz
sudo tar xvfz git-1.8.4.tar.gz
cd git-1.8.4
sudo yum install libcurl-devel.x86_64
sudo ./configure --prefix=$HOME --without-tcltk
sudo yum install gettext
sudo make prefix=/usr/local all
sudo make prefix=/usr/local install

Thursday, May 3, 2012

Install Cisco VPN 4.8.02 on Fedora 14 (2.6.35)

  1. tar xvfz vpnclient-linux-x86_64-4.8.02.0030-k9.tar.gz
  2. cd vpnclient
  3. sudo ./vpn_install
  4. You will probably get failures. If you get failures:
  5. wget http://projects.tuxx-home.at/ciscovpn/patches/vpnclient-linux-2.6.24-final.diff
  6. patch < ./vpnclient-linux-2.6.24-final.diff
  7. This step shows failures, but I don't care (*)
  8. wget http://lamnk.com/download/vpnclient-linux-4.8.02-64bit.patch
  9. patch < ./vpnclient-linux-4.8.02-64bit.patch
  10. sed -i 's/^CFLAGS/EXTRA_CFLAGS/' Makefile
  11. wget http://lamnk.com/download/vpnclient-linux-2.6.31-final.diff
  12. patch < ./vpnclient-linux-2.6.31-final.diff
  13. sudo sed -i 's/const\ struct\ net_device_ops\ \*netdev_ops;/struct\ net_device_ops\ \*netdev_ops;/' `find /usr/src -name netdevice.h`
  14. Update interceptor.c like explained in (**)
  15. sudo ./vpn_install
  16. sudo /sbin/service vpnclient_init start
  17. Create a profile like in (***) and substitute values
  18. cp *.pcf /etc/opt/cisco-vpnclient/Profiles directory
  19. vpnclient connect site-name (site-name is the same as site-name.pcf)
(*)
[jerome@monster] > patch < ./vpnclient-linux-2.6.24-final.diff
patching file GenDefs.h
Hunk #1 succeeded at 105 with fuzz 2.
Hunk #2 succeeded at 122 (offset 2 lines).
patching file interceptor.c
Hunk #3 FAILED at 111.
Hunk #4 succeeded at 142 (offset 5 lines).
Hunk #5 FAILED at 364.
Hunk #6 FAILED at 921.
Hunk #7 FAILED at 949.
4 out of 7 hunks FAILED -- saving rejects to file interceptor.c.rej
(**) Replace
static void interceptor_init(struct net_device *);
with
static
#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,22)
int
#else
int __init
#endif
interceptor_init(struct net_device *);
(***)
[main]
Description=sample user profile
Host=<x.x.x.x>
AuthType=1
GroupName=<GroupName>
GroupPwd=<GroupPwd>
EnableISPConnect=0
ISPConnectType=0
ISPConnect=
ISPCommand=
Username=<Username>
UserPassword=<UserPassword>
SaveUserPassword=1
EnableBackup=0
BackupServer=
EnableNat=1
CertStore=0
CertName=
CertPath=
CertSubjectName=
CertSerialHash=00000000000000000000000000000000
DHGroup=2
ForceKeepAlives=1

Monday, February 27, 2012

Extract RPM without installing

Extract RPM file using rpm2cpio and cpio command:
> rpm2cpio php-5.1.4-1.esp1.x86_64.rpm | cpio -idmv

Output:

/etc/httpd/conf.d/php.conf
./etc/php.d
./etc/php.ini
./usr/bin/php
...
19188 blocks
Output of rpm2cpio piped to cpio command (see how to use cpio) with following options:
  • i: Restore archive
  • d: Create leading directories where needed
  • m: Retain previous file modification times when creating files
  • v: Verbose i.e. display progress

Friday, February 24, 2012

No directory /home/jerome logging in with home=/

Solution:
> sudo touch /.autorelabel
> sudo reboot

Tuesday, February 21, 2012

Resize a Fedora .vdi file in Oracle VM VirtualBox 4.1.8

The LVM system file used by Fedora is not supported by GParted.
In order to add the new volume to the existing partition, we need to use system-config-lvm.
sudo yum -y install system-config-lvm
French article describing how to proceed. NB: If meeting the following error:
process 702: D-Bus library appears to be incorrectly set up; failed to read 
machine uuid: Failed to open "/var/lib/dbus/machine-id": No such file or directory.
Then run the following command as root.
> dbus-uuidgen > /var/lib/dbus/machine-id

Tuesday, February 14, 2012

Permanent hostname change on RedHat based systems

From MDLog:/sysadmin:
RedHat based system use the file /etc/sysconfig/network to read the saved hostname at system boot. This is set using the init script /etc/rc.d/rc.sysinit
/etc/sysconfig/network:
NETWORKING=yes
HOSTNAME="plain.domainname.com"
GATEWAY="192.168.0.1"
GATEWAYDEV="eth0"
FORWARD_IPV4="yes"
So in order to preserve your change on system reboot edit this file and enter the appropriate name using the HOSTNAME variable.

yum

YUM : Configuration du gestionnaire de paquets