fedora

Firebird JDBC driver connection character encoding

假如想象 提交于 2020-01-12 14:06:49
问题 I have a JSF application running on tomcat6 in Fedora 17 using firebird as the database and all the registers coming from the database to the application are coming with a encoding problem. The language is Brazilian portuguese so I need é's and ã's and ç and here all of these special characters come with problems. The é's and ã's from the original source code are ok, only the ones coming directly from the database are causing me the trouble... Any idea what is going on? Heres a image where

Firebird JDBC driver connection character encoding

99封情书 提交于 2020-01-12 14:06:20
问题 I have a JSF application running on tomcat6 in Fedora 17 using firebird as the database and all the registers coming from the database to the application are coming with a encoding problem. The language is Brazilian portuguese so I need é's and ã's and ç and here all of these special characters come with problems. The é's and ã's from the original source code are ok, only the ones coming directly from the database are causing me the trouble... Any idea what is going on? Heres a image where

How to automatically install required packages from a python script as necessary?

假如想象 提交于 2020-01-12 10:09:08
问题 Is there anything in python or linux what basically instructs the system to "install whatever is necessary". Basically I find it annoying to install python packages for each new script/system/server that I work on. Each time I end up doing a sudo pip or an apt-get or dnf anyway. Why not automate that within the script itself. Whereever a 'no package found' error crops up, pass the library name to the install statement. Is this there ? PS: I know docker exists, but am talking at a python

How to automatically install required packages from a python script as necessary?

两盒软妹~` 提交于 2020-01-12 10:08:28
问题 Is there anything in python or linux what basically instructs the system to "install whatever is necessary". Basically I find it annoying to install python packages for each new script/system/server that I work on. Each time I end up doing a sudo pip or an apt-get or dnf anyway. Why not automate that within the script itself. Whereever a 'no package found' error crops up, pass the library name to the install statement. Is this there ? PS: I know docker exists, but am talking at a python

fedora下配置radvd路由服务

≡放荡痞女 提交于 2020-01-10 23:04:50
操作系统:fedora14 软路由版本:radvd1.6.0 ipv6模块是必须的 首先,下载安装radvd啦 #yum search radvd //查看是否有radvd安装包,如果没有请更新源,我用的上海交大的源,是有这个包的 #yum install radvd //安装 其次,配置/etc/radvd.conf #vi /etc/radvd.conf 内容为: interface eth0 { AdvSendAdvert on; MinRtrAdvInterval 3; MaxRtrAdvInterval 10; prefix 2001:db8:0:f101::1/64 { AdvOnLink on; AdvAutonomous on; AdvRouterAddr on; }; }; 最后,启动radvd服务 注意,开启ipv6 forwarding #echo 1 > /proc/sys/net/ipv6/conf/all/forwarding #service radvd start 完毕 来源: https://www.cnblogs.com/p2liu/archive/2011/03/04/6048793.html

Fedora 27/28从USB安装出现boot loader install failed问题

淺唱寂寞╮ 提交于 2020-01-10 10:54:46
【推荐】2019 Java 开发者跳槽指南.pdf(吐血整理) >>> 用了几年的华硕主板坏掉了,主板电压检测出问题,出于对系统的保护,系统禁止启动,到市场修了一周,回复芯片找不到,不得不吐槽,华硕品质,真的不行。想上Ryzen 2400GE,但没有看上的主板,而且主板/CPU/内存/硬盘全套要换掉,估计要3000上下。由于平时不打电脑游戏,基本就是浏览网页,编译一点小的工具,写点脚本,于是打算还是入手一套板载CPU的ITX。最后入手这款,居然还是华硕 本来想着硬盘接上就可以启动,不知道是不是因为UEFI的原因,具体没有去细纠,总之启动不了。无奈只能重装系统。找到Fedora 28,这个之前是用dd做的,启动、备份数据、安装、分区,但在软件安装完毕,开始安装启动引导程序的时候出错,引用一下别人的截图(这个是Fedora 25) 反复多次安装,调整分区,在终端手工安装,均告失败,甚至用Fedora 27来安装,使用报相同的错误。但是如果选择自动分区则可以正常安装,不过自动分区使用LVM,分区大小也不满意。干掉再重装,还是一样的错误,最后在网上找到下面解释: The answer includes the following: Boot your computer with a live-USB/CD in UEFI mode. I had two boot options

启动一个 Fedora Live CD

本秂侑毒 提交于 2020-01-10 10:17:51
【推荐】2019 Java 开发者跳槽指南.pdf(吐血整理) >>> 作为使用 DVD 和 USB 驱动器来存储你的 Live CD 镜像是一个替代方案,你可以上传它们到一个不太可能丢失或损坏的 iSCSI 服务器中。这个指南向你展示如何加载你的 Live CD 镜像到一个 ISCSI 服务器上,并使用 iPXE 启动加载程序来访问它们。 Live CD 对于很多任务是很有用的,例如: 将操作系统安装到一个硬盘驱动器 修复一个启动加载程序或执行其它救援模式操作 为 Web 浏览提供一个相适应的最小环境 …以及更多的东西。 下载一个 Live CD 镜像 $ MY_RLSE=27 $ MY_LIVE=$(wget -q -O - https://dl.fedoraproject.org/pub/archive/fedora/ linux /releases/$MY_RLSE/Workstation/x86_64/iso | perl -ne '/(Fedora[^ ]*?-Live-[^ ]*?\.iso)(?{print $^N})/;') $ MY_NAME=fc$MY_RLSE $ wget -O $MY_NAME.iso https://dl.fedoraproject.org/pub/archive/fedora/linux/releases/$MY_RLSE

如何升级Linux内核(RHEL/Fedora/CentOS升级内核 & Debian/Ubuntu升级内核)

不问归期 提交于 2020-01-10 07:29:24
转载来源: https://www.cyberciti.biz/faq/linux-kernel-upgrade-howto/ 如何升级Linux内核 升级我的Linux内核?我想升级内核而不从源代码编译,即二进制升级。如何在Linux中执行内核的实际升级? 只有在以下情况下才需要编译内核: =>您需要为特定任务(如嵌入式内核)定制内核。 =>应用第三方安全补丁。 =>您需要将特定补丁应用于Linux 在Red Hat企业Linux版本<= 4.x中升级内核 如果您的系统已在Red Hat Network(RHN)中注册,则可以按如下方式 使用up2date 命令: # up2date -f kernel 对于SMP内核(多核或多CPU),使用命令: # up2date -f kernel-smp 在Fedora Linux / CentOS / RHEL 5中升级内核 使用yum命令升级内核: # yum update kernel 如果您已下载RPM文件,请使用 rpm命令 : # rpm -ivh kernel* 在Debian或Ubuntu Linux中升级内核 使用 apt-get命令 。首先找到你的内核版本: $ uname -r 接下来找到可用的内核映像: $ apt-cache search linux-image 现在通过显式指定版本号来安装内核: # apt

Linux Yum命令

随声附和 提交于 2020-01-09 20:28:44
一. yum是什么 yum = Yellow dog Updater, Modified 主要功能是更方便的添加/删除/更新RPM包. 它能自动解决包的倚赖性问题. 它能便于管理大量系统的更新问题 注:为什么要使用yum而不用apt,最简单的原因,Fedora自带 二. yum特点 *可以同时配置多个资源库( Repository) *简洁的配置文件 (/etc/yum.conf) *自动解决增加或删除rpm包时遇到的倚赖性问题 *使用方便 *保持与RPM数据库的一致性 三. yum安装 Fedora自带 #rpm -ivh yum-2.0.4-2.noarch.rpm 四. yum配置 注:修改和增加配置文件中的资源库,加快下载速度和拥有更多可更新的rpm包 将/etc/yum.conf的内容全部替换为 [main] cachedir=/var/cache/yum debuglevel=2 logfile=/var/log/yum.log pkgpolicy=newest distroverpkg=fedora-release tolerant=1 exactarch=1 [fedora-us-1] name=Fedora Core 1 -- Fedora US mirror baseurl=ftp://mirrors.kernel.org/fedora.us/fedora

Could not reliably determine the server's fully qualified domain name

一世执手 提交于 2020-01-09 06:00:49
问题 I have just installed Apache 2.2.17, and I am using it first time. Now when I try to start the server using the command service httpd start it gives me the message: httpd: Could not reliably determine the server's fully qualified domain name, using ::1 for ServerName Now I think I have to set ServerName and the IP address as I search through Google. But I don't know in which file I have to set. How can I fix this problem? 回答1: Yes, you should set ServerName: http://wiki.apache.org/httpd