rebuild kernel add syscall
by 嘉谟
I want to and a new syscall
1 add
.long sys_mysyscall
in arch/x86/kernel/syscall_table_32.S
2 add
#define __NR_mysyscall 341
in arch/x86/include/asm/unistd_32.
3. add
asmlinkage int sys_mysyscall(char* sourceFile,char* destFile)
{
int source=sys_open(sourceFile,O_RDONLY,0);
int dest=sys_open(destFile,O_WRONLY|O_CREAT|O_TRUNC,0600);
char buf[1024];
mm_segment_t fs;
fs = get_fs();
set_fs(get_ds());
int nread;
if(source>0 && dest>0)
{
while((nread=sys_read(source,buf,1024)) > 0)
sys_write(dest,buf,read);
}
else
{
printk("Error!");
}
sys_close(source);
sys_close(dest);
set_fs(fs);
return 0;
}
in kerrnel/sys.c
4. make menuconfig
5. make all
6 make modules_install
reboot
Now I want just do it one time
How can i make sure the new syscall here is mysyscall work fine ?
13 years, 1 month
Thunderbird Misbehaviour f14
by Jonathan Allen
Hi All,
I've just taken the plunge with a f14 upgrade. Almost everything seems sensible. One
rather annoying oddity is the behaviour of thunderbird with links in emails. It
detects that they are links (by colouring them and the cursor change on mouse-over)
but when I click, nothing happens. I opened the thunderbird error console and it
seems to be generating some kind of chrome error. Any clues as to what this might
be and how I get to work properly?
Jonathan
13 years, 1 month
automatic menus for window managers
by Piscium
I am currently using a full desktop environment (Gnome) but am
considering using instead a window manager. There are dozens of them
around, so I have been exploring and comparing.
I noticed that for many of the window managers that I install in
Debian (examples: fluxbox, openbox, awesome) there is an application
menu tree that can be easily accessed with the mouse from the desktop,
and this tree has - as far as I can tell - the same applications in
the Gnome menu, though usually organized differently.
If I install the same window managers in Fedora I do not get the menu
tree. I like the way things work in Debian because this means less
work is needed in creating menus for some rarely used applications
(for programs that I use often I don't mind spending some time to
create some sort of launcher).
I tried to understand how the window managers in Debian get the
application menus. It seems that it all happens as result of a Debian
package called "menu", which keeps the menus automagically up-to-date
for the window managers that bother to look at them with tools such as
"update-menus" and "install-menu".
I looked through Fedora packages and I have not found anything
equivalent, but maybe I missed it. Any ideas?
13 years, 1 month
rpm with biblatex.sty?
by Ranjan Maitra
Does anyone know if there is a package containing biblatex.sty on any
of the unofficial repos for F14?
Thanks very much for your help!
Best wishes,
Ranjan
13 years, 1 month
X won't start - segmentations fault
by Oliver Ruebenacker
Hello,
Since this morning, X Windows on F14 on my Dell Latitude D820 laptop
won't start up. It may or may not be since the first reboot after the
latest updates during Sunday.
It says "Segmentation fault at address 0x3f"
I don't know whether it plays a role here, but in the log file, it
also says that "Custom HAL configuration [...] If you have such
configuration you will need to update it to the new format." with
reference to http://fedoraproject.org/wiki/Input_device_configuration.
I have no idea what HAL is, and even after reading this page, I still
have no idea whether this applies to me or what I would need to do if
it does.
What can I do? Thanks!
Take care
Oliver
--
Oliver Ruebenacker, Computational Cell Biologist
Systems Biology Linker at Virtual Cell (http://vcell.org/sybil)
Turning Knowledge Data into Models
Center for Cell Analysis and Modeling
http://www.oliver.curiousworld.org
13 years, 1 month
Suggestion for a smartphone running natively LINUX? :)
by johhny_at_poland77
not android!
Debian, Fedora, or anything (natively = not in chroot)
I'm not sure, but the Nokia N900 can run Debian
http://openattitude.com/2010/03/19/easy-and-amazing-debian-for-the-n900/
I just need Linux because i need:
- iptables/netfilter
- an openvpn client
- a good browser (google chrome with notscript+wot extension)
- flash player!!!
- "KISS" principle - so that it could be more secure if i only install what i really want
- remote desktop client (to access windows machines remotely)
it must not be a little distro, i need a big one (e.g.: Debian - the more eyes seeing it the better is it) - not a little one, that could contain a backdoor!!!!
or android is a good solution? can i run chrome on it? is it a "safe" distro?
important: i would only use the phone for surfing the net.
thanks for any help regarding these questions.
13 years, 1 month
[OT] Problems with Adobe Flash Player
by Jerry Feldman
There are a number of web sites, such as Speakeasy Speed Test
(http://www.speakeasy.net/speedtest/) that does not work with the latest
Adobe Flashplayer 10 Square: flashplayer10_2_p3_64bit_linux_111710.tar.gz
But it does run fine under some older versions of flashplayer 10:
libflashplayer-10.0.45.2.linux-x86_64.so.tar.gz
I'm also seeing some web sites that run properly under Square, but not
under the old version.
I'd much rather use Gnash, but it does not have the functionality for
some websites. I'm wondering if anyone else has experienced the same
issues.
Since these are closed source, they are not available in Fedora or RPM
Fusion so I'm marking this as OT.
--
Jerry Feldman <gaf(a)blu.org>
Boston Linux and Unix
PGP key id: 537C5846
PGP Key fingerprint: 3D1B 8377 A3C0 A5F2 ECBB CA3B 4607 4319 537C 5846
13 years, 1 month
Fedora/KDE contact lists - looking for advice:
by Timothy Murphy
I've been trying for some time (years in fact)
to find a good way of storing email and phone contacts
on a LAN-wide basis.
I'm currently running OpenLDAP and dovecot/IMAP on my CentOS-5.5 server,
and access this with KMail/KAddressBook/Kontact on my laptops.
This works, but I don't find it entirely satisfactory,
perhaps because I don't understand how to use it properly.
Some of the unsatisfactory features of this setup are:
When I run Kontact on my Fedora-14 laptop,
under Address Books is listed Personal Contacts,
but highlighting, and left- or right-clicking on this has no effect.
There is a line at the top which says "Search"
but putting anything in there has no effect.
My LDAP server is listed when I click on
File=>Import=>Import from LDAP server=>Configure LDAP Servers
but clicking on OK appears to have no effect.
The Kontact Help/Handbook is fairly useless, at least for my purpose,
since it says that KAddressBook is the "KDE contact manager",
but also says that there is no documentation for this.
However, when I go to KMail=>New on the laptop and enter part of a name,
it seems to find the name at once in the LDAP server.
KMail=>Tools=>KAddressBook seems to bring up more or less the same window
as Kontact, with the same lack of response to any input.
Actually, even if Kontact worked reasonably well with OpenLDAP
I would not be entirely satisfied, since I find the LDAP setup
rather constrained, with a very rigid format for InetOrgPerson,
which seems the standard entry type to use for contacts.
Also, I've never found a way of getting mobile phone contact lists
to combine (eg with Bluetooth) in any way with anything on the computer.
But this must be an issue that many people have faced.
How do you all keep your contacts available on different machines?
--
Timothy Murphy
e-mail: gayleard /at/ eircom.net
tel: +353-86-2336090, +353-1-2842366
s-mail: School of Mathematics, Trinity College, Dublin 2, Ireland
13 years, 1 month
PXE instillation of Fedora
by Aaron Gray
Since these HP ProLiant DL150's dont have CD's, I need to do a PXE
instillation from another Fedora box.
Does anyone have a link to proper instructions on how to do this. I have
looked at quite a few instructions but non that outline the Fedora files
necessary to be put under /tftpboot on the server.
Also it says on the ProLiant documentation that you only need tfpd and bootp
and not full DHCP ?
Any advice welcome, particularly if you have done a PXE instillation of
Fedora.
Many thanks in advance,
Aaron
13 years, 1 month
Any arguments for keeping Yum case-sensitive?
by Fernando Cassia
This is silly.... makes me waste time... wasting time is no good.
[root@doscabezas sound-juicer-2.20.1]# yum install Perl-xml-parser
Loaded plugins: refresh-packagekit
Setting up Install Process
No package Perl-xml-parser available.
..GRRR...
# yum install perl-xml-parser
Loaded plugins: refresh-packagekit
Setting up Install Process
No package perl-xml-parser available.
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
* Maybe you meant: perl-XML-Parser
Nothing to do
[root@doscabezas sound-juicer-2.20.1]# yum install perl-XML-parser
Loaded plugins: refresh-packagekit
Setting up Install Process
No package perl-XML-parser available.
* Maybe you meant: perl-XML-Parser
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
*YES, @##$^&(#$^*&#$ SCRIPT!!!
This is the equivalent of Microsoft's "It looks like you're writting a
letter..." by MS's "Clippy".
Nothing to do
[root@doscabezas sound-juicer-2.20.1]# yum install perl-XML-Parser
Loaded plugins: refresh-packagekit
Setting up Install Process
Resolving Dependencies
There are unfinished transactions remaining. You might consider
running yum-complete-transaction first to finish them.
--> Running transaction check
---> Package perl-XML-Parser.i386 0:2.36-3.fc9 set to be updated
--> Finished Dependency Resolution
FC
13 years, 1 month